package com.yunji.order.business;

import com.yunji.common.base.BaseBusiness;
import com.yunji.order.dto.OrderScaleParam;
import com.yunji.order.dto.TradeParam;
import com.yunji.order.service.OrderScaleService;
import com.yunji.order.service.TradeService;
import com.yunji.order.vo.OrderScaleVO;
import com.yunji.order.vo.TradeVO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
 * @Project: yunji-coffee
 * @Package: com.yunji.order.business
 * @Title: TradeBusiness
 * @Description: 支付订单业务处理
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-04-10 14:20:20      V1.0        HuaAo       新建类
 */
@Service
public class TradeBusiness extends BaseBusiness {
    @Resource
    private TradeService tradeService;

    @Resource
    private OrderScaleService orderScaleService;

    public List<TradeVO> tradeList(TradeParam trade) {
        return tradeService.tradeList(trade);
    }

    public List<OrderScaleVO> scaleList(OrderScaleParam param) {
        return orderScaleService.scaleList(param);
    }
}
